﻿namespace Cos.Module.Membership.NHibernate.Tests
{
    using Cos.Core.NHibernate;
    using Cos.Core.NHibernate.Tests;

    using NUnit.Framework;

    [TestFixture]
    public class ExtensionsParameterDataModelFixture : ModuleFixtureBase
    {
        [Test]
        public void CanMapExtensionParameterDataModel()
        {
            new PersistenceSpecification<ExtensionsParameterDataModel>(Session)
                .CheckProperty(x => x.Id, "type")
                .CheckProperty(x => x.Active, false)
                .CheckProperty(x => x.Param1, "param1 value")
                .CheckProperty(x => x.Param2, "param2 value")
                .CheckProperty(x => x.Param3, "param3 value")
                .CheckProperty(x => x.Param4, "param4 value")
                .VerifyTheMappings();
        }
    }
}
